package com.kob.botrunningsystem.service.impl;

import com.kob.botrunningsystem.service.BotRunningService;
import com.kob.botrunningsystem.utils.BotPool;
import org.springframework.stereotype.Service;

@Service
public class BotRunningServiceImpl implements BotRunningService {

    //加入机器人执行池
    public static final BotPool botPool = new BotPool();

    @Override
    public String addBot(Integer userId, String botCode, String input) {
        //System.out.println("add bot:" + userId + " " + botCode + " " + input);
        botPool.addBot(userId, botCode, input);
        return "add bot successfully";
    }
}
